home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / an105x.zip / IPX.H < prev    next >
C/C++ Source or Header  |  1991-04-09  |  1KB  |  53 lines

  1. /*****************************************************************************
  2. * IPX.H
  3. *
  4. * 91-04-05 Matt Hagen, Novell, Inc.
  5. *****************************************************************************/
  6.  
  7. #include <nwtypes.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <nwsemaph.h>
  11. #include <nwipxspx.h>
  12. #include <signal.h>
  13. #include <errno.h>
  14.  
  15. typedef struct ECBHOLDStructure
  16. {
  17.     struct ECBHOLDStructure *fLink;
  18.     IPX_ECB *ecb;
  19. }ECBHOLD;
  20.  
  21. typedef struct SessionStructure
  22. {
  23.     struct SessionStructure *fLink;
  24.     IPX_ECB *rxHead;
  25.     int semaphore;
  26.     WORD socket;
  27.     ECBHOLD *rxList;
  28.     ECBHOLD *txList;
  29. }SESSION;
  30.  
  31. extern SESSION *AllocateIPXResources(
  32.     WORD socketValue,
  33.     BYTE semaphoreValue,
  34.     BYTE rxCount,
  35.     LONG rxDataSize,
  36.     BYTE txCount,
  37.     LONG txDataSize);
  38.  
  39. extern void DeallocateIPXResources(
  40.     SESSION *s);
  41.  
  42. ECBHOLD *AllocatePacket(
  43.     LONG dataSize,
  44.     WORD socket,
  45.     LONG semaphore,
  46.     IPX_ECB **head);
  47.  
  48. void DeallocatePacket(
  49.     ECBHOLD *h);
  50.  
  51. /****************************************************************************/
  52. /****************************************************************************/
  53.